﻿@page "/gateway/monitor"
@attribute [Authorize]
@attribute [RolePermission]
@inherits ComponentDefault
@using ThingsGateway.Admin.Application
@using ThingsGateway.Admin.Razor
@using ThingsGateway.Gateway.Application
@namespace ThingsGateway.Gateway.Razor

<div class="row h-100 g-0">

    <Split Basis="20%" ShowBarHandle=false>
        <FirstPaneTemplate>


            <Card IsShadow=true class="h-100 me-1" Color="Color.Primary">
                <BodyTemplate>
                    <ChannelDeviceTree @bind-ShowType=ShowType AutoRestartThread="AutoRestartThread"
                                       ChannelDeviceChanged="TreeChangedAsync" Value="SelectModel"></ChannelDeviceTree>
                </BodyTemplate>
            </Card>


        </FirstPaneTemplate>
        <SecondPaneTemplate>

            <div class="h-100 ms-1">
                <GatewayInfo AutoRestartThread=AutoRestartThread SelectModel=SelectModel ShowChannelRuntime=ShowChannelRuntime ShowDeviceRuntime=ShowDeviceRuntime ShowType=ShowType VariableRuntimes=VariableRuntimes ChannelRuntimes="ChannelRuntimes" DeviceRuntimes="DeviceRuntimes" />
            </div>

        </SecondPaneTemplate>
    </Split>

</div>
<QuickActions @bind-AutoRestartThread=AutoRestartThread />

